
function emailCtrl($scope, $browser) { 
	$scope.name_format=/^[\u4e00-\u9fa5]{0,}$/;
	$scope.idcard_format=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
    $scope.checked = true;	
	//$scope.Vname=true;
	//$scope.Vidcard=true;
      
	 function myalert(msg){
		$scope.account = $browser.cookies()['account'];
        $scope.name =unescape($browser.cookies()['name']);
        $scope.email = $browser.cookies()['email'];
        $scope.idcard = $browser.cookies()['idcard'];
		deleteCookie("name");
		deleteCookie('account');
        deleteCookie('email');
        deleteCookie('idcard');
		deleteCookie('error');
		$scope.showHid=true;
		$scope.alertCon=msg;
	}

	var error = $browser.cookies()['error'];
	if (error && error != "") {
        switch(error){
            case "0000": myalert("验证码不正确，请重试"); break;
            case "0001": myalert("省份证号码不正确，请重试"); break;
        };
       
    };

   
}






